import { Constant } from "../../Constant";
import { Main } from "../../Main";
import StateBase from "../StateBase";

export default class LuckRecruitStartState extends StateBase {
    begin(preState: number): void {
        super.begin(preState);
       // console.log('LuckRecruitStartState state--begin');
        const main = this.getUserData() as Main;
        // 幸运招募开始状态的逻辑
        main.roundOptions[3].active = false;
        main.lightAnimation.playResult(1);
        main.roundTips[3].clear();
        main.scheduleOnce(() => {
            main.mainFsm.goToState(Constant.MainState.LuckRecruitFinish, main);
        }, 1)

    }

    end(nextState: number): void {
        super.end(nextState);
        //console.log('LuckRecruitStartState state--end');
    }
}
